<?php
namespace Admin\Controller;
use Think\Controller;
class CommentController extends CommonController {
    public function index(){
    	$db=M('product');
        $data=$db->select();
        foreach ($data as $key => $value) {
            $value['images']=json_decode($value['images'],true);
            $data[$key]['images']=$value['images'][0];
        }
        $this->assign('data',$data);
        $this->display();
    }
}